import { RootState } from "@/store"
import { Module } from "vuex"
import { fileCheck } from "./FileCheckManagement"
import { home } from "./HomeManagement"
import { IWebsiteActions, IWebsiteGetter, IWebsiteMutations, IWebsiteState } from "./types"

const state: IWebsiteState = {
    currentPage: ''
}

const actions: IWebsiteActions = {

}

const mutations: IWebsiteMutations = {
    _setCurrentPage(state, payload) {
        state.currentPage = payload
    }
}
const getters: IWebsiteGetter = {}

export const websiteManagement: Module<IWebsiteState, RootState> = {
    namespaced: true,
    state,
    actions,
    mutations,
    getters,
    modules: {
        home,
        fileCheck
    }
}
